package com.design.pattern.observer.simple;

public class Client {
    public static void main(String[] args) {
        Oauth panda=new ConcerteOauth("Panda");
        User xiaoMing=new ConcerteUser("XiaoMing");
        User xiaoHei=new ConcerteUser("小黑");
        panda.addObserver(xiaoMing);
        panda.addObserver(xiaoHei);
        panda.publishNew("《设计模式从入门到放弃》");
    }
}
